package cn.itcast.service.cargo;

import cn.itcast.domain.cargo.Invoice;
import cn.itcast.domain.cargo.InvoiceExample;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface InvoiceService {

    Invoice findById(String id);

    List<Invoice> findAll(InvoiceExample example);

    void save(Invoice invoice);

    void update(Invoice invoice);

    void delete(String id);

	PageInfo<Invoice> findByPage(InvoiceExample example, int pageNum, int pageSize);
	
}
